package com.bw.controller;

import com.bw.entity.Zxt3;
import com.bw.mapper.Zxt3Mapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

@Controller
public class YiQingController {

    @Autowired
    Zxt3Mapper zxt3Mapper;


    @RequestMapping("/yq.do")
    public String yq() {

        return "yq";
    }

    @RequestMapping("/zxt3.do")
    @ResponseBody
    public List<Zxt3> zxt3(Integer yesterday) {
        return zxt3Mapper.zxt3(yesterday);
    }
}
